<#import "/spring.ftl" as spring/>
<#import "/common/base.ftl" as base/>
<@base.page '供应商'>
<div ng-controller="supplierEditController">
	<div class="row">
		<strong><p style="font-size:20px;margin-left:20px;">供应商  - <font style="color:red">{{DetaillistData.supplierCode}}</font></p>
		</strong>
	</div>
	<div  class="row" style="width:100%;margin-left:10px;" >
		<div class="panel panel-default"  class="text-center" style="width:80%;">
			<div class="panel-heading">基本信息</div>
			  <div class="panel-body" style="overflow-x: hidden;" width="80%">
								<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper form-inline" role="grid">
									<input type="hidden" ng-model="id" />
										<form id="basicForm" name="basicForm" class="form-horizontal">
                                            <table style="width:100%;"  align="center" border="0" cellpadding="0" class="table table-striped table-bordered dataTables-example dataTable">
                                                <tr>
                                                <tr  height="35">
                                                    <td style="width:25%;">编码<font color="#FF0000">*</font></td>
                                                    <td style="width:25%;"><input ng-disabled="isDisabled" ng-model="DetaillistData.supplierCode" type="text" class="form-control input-sm" style="width:150px;"  required="required" maxlength="20"/><span ng-show="warn"></span></td>
                                               
                                                    <td style="width:25%;">收款方名称<font color="#FF0000">*</font></td>
                                                    <td style="width:25%;"><input ng-model="DetaillistData.beneficiaryName" type="text" class="form-control input-sm"  style="width:150px;" required="required" maxlength="20"/><span ng-show="warn"></span></td>
                                               
                                                </tr>
                                                <tr height="35">
                                                    <td>名称<font color="#FF0000">*</font></td>
                                                    <td><input type="text" ng-model="DetaillistData.supplierName" class="form-control input-sm" style="width:150px;" required="required" maxlength="20"/></td>
                                                    <td>开户行</td>
                                                    <td><input type="text" ng-model="DetaillistData.openAccount" class="form-control input-sm" style="width:150px;"  maxlength="100"/></td>
                                                </tr>
                                                <tr height="35">
                                                    <td>简称</td>
                                                    <td><input type="text" ng-model="DetaillistData.supplierShortCode" class="form-control input-sm" style="width:150px;" maxlength="20"/></td>
                                                    <td>银行账号</td>
                                                    <td><input type="text" ng-model="DetaillistData.bankAccount" class="form-control input-sm" style="width:150px;"  maxlength="100"/></td>
                                                </tr>
                                                <tr height="35">
                                                    <td>结算方式<font color="#FF0000">*</font></td>
                                                    <td>
                                                    <select required="required" ng-model="DetaillistData.settmentType" name="DetaillistData.settmentType" class="form-control" ng-options="orderType.key as orderType.value for orderType in orderTypes">
										                

										            </select>
										            </td>
                                                    <td>合同开始时间</td>
                                                    <td><input type="text" ng-model="DetaillistData.contractStartTime" class="form-control" placeholder=""  my97datepicker="{ dateFmt: 'yyyy-MM-dd' , readOnly: true}" style="width:120px" readOnly/></td>
                                                </tr>
                                                <tr height="35">
                                                    <td>保证金</td>
                                                    <td><input type="text" ng-model="DetaillistData.deposit" class="form-control input-sm" style="width:150px;" maxlength="10" ng-change="changeNum()"/></td>
                                                    <td>合同结束时间</td>
                                                    <td><input type="text" ng-model="DetaillistData.contractEndTime" class="form-control" placeholder=""  my97datepicker="{ dateFmt: 'yyyy-MM-dd', readOnly: true}" style="width:120px" readOnly/></td>
                                                </tr>
                                                <tr height="35">
                                                     <td>发票类型</td>
                                                    <td>
                                                    <select ng-model="DetaillistData.invoiceType" name="DetaillistData.invoiceType" class="form-control"  ng-options="InvoiceType.key as InvoiceType.value for InvoiceType in InvoiceTypes">
												      <option value="">-- 请选择 --</option>
												     </select>
												     </td>
                                                    <td>供应商负责人<font color="#FF0000">*</font></td>
                                                    <td><input type="text" ng-model="DetaillistData.contractPerson" class="form-control input-sm"  style="width:150px;" required="required" maxlength="10"/></td>
                                                </tr>
                                                 <tr height="35">
                                                    <td>供应商类型</td>
                                                    <td>
                                                      <select ng-model="DetaillistData.supplierType" name="DetaillistData.supplierType" class="form-control"  ng-options="supplierType.key as supplierType.value for supplierType in supplierTypes">
												      <option value="">-- 请选择 --</option>
												     </select>
												    </td>
                                                    <td>负责人联系方式<font color="#FF0000">*</font></td>
                                                    <td><input type="text" ng-model="DetaillistData.contractMobile" class="form-control input-sm" style="width:150px;" required="required" maxlength="15"/></td>
                                                </tr>
                                                <tr height="35">
                                                      <td> 商品类目
                                                      <br><br><br><br>分管人员<font color="#FF0000">*</font></td>
                                                    <td><input type="text" ng-model="DetaillistData.goodsClass" class="form-control input-sm" style="width:150px;"  maxlength="10"/>
                                                   
                                                    <br><br><br> <input type="text" ng-model="DetaillistData.managePerson" class="form-control input-sm" style="width:150px;" required="required" maxlength="100"/></td>
                                                    <td>说明</td>
                                                    <td><textarea class="form-control input-sm" ng-model="DetaillistData.remark" id="remark" cols="45" rows="5" maxlength="200"></textarea></td>
                                                </tr>
                    
                                                </tr>
                                                
                                             
                                            </table>
										</form> 
										<div width="90%" class="row" >
											<div align="center">
												<a class="btn btn-primary" ng-disabled="basicForm.$invalid" ng-click="submit()" display:inline-block>保存</a>
												<a class="btn btn-primary"  ng-click="back()" display:inline-block>返回</a>
                                               
                                            </div>
                                        </div>
                     </div>               
		</div>                  
	</div>
</div>
<script src="<@spring.url '/assets/pagejs/supplier/supplier.js' />"></script>
</@base.page >
